Default OLLAMA_MODEL to embeddinggemma:300m in docker-compose#1
Merged
Conversation
Adds OLLAMA_MODEL env var to the code_nexus service with embeddinggemma:300m as the default. Matches the existing 768-dim vector size and lets users override with `OLLAMA_MODEL=... docker-compose up`.
The published image doesn't include curl, so every healthcheck probe failed with "executable file not found" and the container was reported unhealthy even though Phoenix on :4100 was serving fine. Switch to the same bash /dev/tcp probe qdrant uses.
iksnerd
added a commit
that referenced
this pull request
May 4, 2026
* Default OLLAMA_MODEL to embeddinggemma:300m in docker-compose Adds OLLAMA_MODEL env var to the code_nexus service with embeddinggemma:300m as the default. Matches the existing 768-dim vector size and lets users override with `OLLAMA_MODEL=... docker-compose up`. * Fix code_nexus healthcheck — use /dev/tcp instead of curl The published image doesn't include curl, so every healthcheck probe failed with "executable file not found" and the container was reported unhealthy even though Phoenix on :4100 was serving fine. Switch to the same bash /dev/tcp probe qdrant uses. --------- Co-authored-by: iksnerd <iksnerd@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
OLLAMA_MODELenv var to thecode_nexusservice withembeddinggemma:300mas the defaultqdrant_client.exandtfidf_embedder.exmatches embeddinggemma's default output dimension, so no schema change neededembedding_model.exalready readsOLLAMA_MODEL(falls back tonomic-embed-textconstant if unset, but docker-compose now supplies the env var)OLLAMA_MODEL=nomic-embed-text docker-compose upTest plan
docker-compose up -dwithWORKSPACE=~/wwwboots the stackmcp__code-nexus__reindex(path: "elixir-nexus")indexes the repo (70 files, 794 chunks)get_graph_statsreturns 794 nodes, 3311 call edges, 54 importssearch_code "embed text via Ollama"returnsElixirNexus.EmbeddingModelas top hit (score 0.6)find_all_callers "embed_batch"returns 5 callers across 3 filesmix compile --warnings-as-errorspassesmix format --check-formattedpasses🤖 Generated with Claude Code